package com.wwdx.controller.admin;

import com.wwdx.controller.base.BaseController;
import com.wwdx.model.WwdxCouponLogModel;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author liguoliang
 * @date 2018/4/20 14:53
 */
@Controller
@RequestMapping("/system/wwdx_coupon_log")
public class WwdxCouponLogController extends BaseController{

    /**
     * 列表
     */
    @RequestMapping("/list")
    public ModelAndView chapterlist(WwdxCouponLogModel model,
                                    @RequestParam(value = "page", defaultValue = "1") int page,
                                    @RequestParam(value = "rows",defaultValue = "10") int rows) {

        ModelAndView mav = new ModelAndView();
        mav.addObject("listSize",  wwdxCouponLogService.selectModelCount(model));
        mav.addObject("list",  wwdxCouponLogService.selectModelList(model,page,rows));
        return mav;
    }
}